import request from '@/utils/request'

/**
 * 获取聊天记录
 * @param {Object} params
 */
export function getChatMsgListApi(params) {
  return request({
    url: '/chat/list',
    method: 'get',
    data: params
  })
}

/**
 * 发送聊天消息
 * @param {Object} data
 */
export function sendChatMsgApi(data) {
  return request({
    url: '/chat/sendMsg',
    method: 'post',
    data
  })
}

/**
 * 撤回消息
 * @param {Object} data
 */
export function recallChatMsgApi(data) {
  return request({
    url: '/chat/recallMsg',
    method: 'post',
    data
  })
}


